<div class="prolist">
  <div class="left">
  <%=render :partial=>"products/pronav",:object=>@product.procate_id %>
     <%= render :partial=>"products/tejia_pros" %>
   
  </div>
 
  <div class="right">
    <div class="content">
      <h3 class="protitle"><%=@product.name %></h3>
      <div class="sub_left">
        <div class="bigimg">
          <%=link_to image_tag("/images/proimages/"+(@product.main_image && @product.main_image.name ? @product.main_image.name : "noimage.png")),list_product_pro_images_path(@product) %>
        </div>
        <div class="pro_imgs">
          <% for img in @product.pro_images -%>
            <%=link_to image_tag("/images/proimages/#{img.name.sub(".","_s.")}"),"/images/proimages/#{img.name}",:title=>@product.name %>
          <% end -%>
        </div>
         <div class="center">
          <br/>
          <img src="/images/zoom.gif" align="absbottom" style="border:none"/>&nbsp;<a href="<%=list_product_pro_images_path(@product)%>">点击查看大图</a>
        </div>
      </div>
      <div class="sub_right">
        <h3><%=@tuangou_pro.title %></h3>

        <p class="msg"><span class="alert">团购详情：<%=h @tuangou_pro.description  %></span></p>
        <p>点击次数：<%=h @tuangou_pro.click_count %></p>
        <p>团购人数：<%=h @tuangou_pro.baomings_count %></p>
        <p>团购状态:<%=@tuangou_pro.state==0 ? "进行中" : "团购完成" %></p>
        <p>市场价格：<s><%=number_to_currency(@product.price,:unit=>"元",:format=>"%n%u") %></s></p>

        <p>
          团购价格：<b class="redcolor"><%=number_to_currency @product.now_price,:unit=>"元",:format=>"%n%u" %></b>
        </p>

        <p><%= link_to "<b>点击报名</b>", new_on_line_baoming_path(@tuangou_pro.id),:class=>"long-btn" %></p>

      </div>
    </div>

    <%= render :partial=>"products/dis_pro_value",:object=>@product %>
  </div>
 
</div>
<%=render :partial=>"/products/sub_menu",:object=>2 %>
<script type="text/javascript">
  $(document).ready(function(){
    $(".pro_imgs img").css("cursor","pointer").click(function(){
      $(".bigimg img").attr("src",$(this).attr("src").replace("_s",""))
    });

  });
</script>



